<h1>Listing issues</h1>

<table>
  <tr>
    <th>Serial</th>
    <th>Issue date</th>
    <th>Volume</th>
    <th>No</th>
  </tr>

<% for issue in @issues %>
  <tr class="<%= cycle('list-line-odd', 'list-line-even') %>">
    <td><%=h Serial.find(issue.serial_id).name %></td>
    <td><%=h issue.issue_date %></td>
    <td><%=h issue.volume %></td>
    <td><%=h issue.no %></td>
    <td><%= link_to 'Show', issue_path(issue) %></td>
    <td><%= link_to 'Edit', edit_issue_path(issue) %></td>
    <td><%= link_to 'Destroy', issue_path(issue), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New issue', new_issue_path %>